//
//  MyTableViewCell.m
//  UI_豆瓣影院
//
//  Created by dllo on 15/12/31.
//  Copyright © 2015年 dllo. All rights reserved.
//

#import "MyTableViewCell.h"

@implementation MyTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self creatCell];
    }
    return self;
    
}
- (void)dealloc {
    [_zLable release];
    [_cLable release];
    [_tLable release];
    [_dLable release];
    [_lLable release];
    [_gLable release];
    [_imageview release];
    [_lable release];
    [_gLable1 release];
    [_cLable1 release];
    [super dealloc];
}

- (void)creatCell {
    self.zLable = [[UIImageView alloc] init];
    [self.contentView addSubview:_zLable];
    [_zLable release];
    
    self.view1 = [[UIView alloc] init];
    [self.zLable addSubview:_view1];
    [_view1 release];
    self.lable = [[UILabel alloc] init];
    [self.zLable addSubview:_lable];
    [_lable release];
    self.tLable = [[UILabel alloc] init];
    [self.view1 addSubview:_tLable];
    [_tLable release];
    self.dLable = [[UILabel alloc] init];
    [self.view1 addSubview:_dLable];
    [_dLable release];
    self.lLable = [[UILabel alloc] init];
    [self.view1 addSubview:_lLable];
    [_lLable release];
    self.gLable = [[UILabel alloc] init];
    [self.view1 addSubview:_gLable];
    [_gLable1 release];
    self.cLable = [[UILabel alloc] init];
    [self.view1 addSubview:_cLable];
    [_cLable1 release];
    self.imageview = [[UIImageView alloc] init];
    [self.view1 addSubview:_imageview];
    [_imageview release];
    self.gLable1 = [[UILabel alloc] init];
    [self.view1 addSubview:_gLable1];
    [_gLable1 release];
    self.cLable1 = [[UILabel alloc] init];
    [self.view1 addSubview:_cLable1];
    [_cLable1 release];
    self.view2 = [[UIImageView alloc] init];
    [self.view1 addSubview:_view2];
    [_view2 release];
    self.view3 = [[UIImageView alloc] init];
    [self.view1 addSubview:_view3];
    [_view3 release];
    self.view4 = [[UIImageView alloc] init];
    [self.view1 addSubview:_view4];
    [_view4 release];
    
}
- (void)layoutSubviews {
    
    [super layoutSubviews];
    _zLable.frame = CGRectMake(10, 10, 350, 275);
//    _zLable.backgroundColor = [UIColor lightGrayColor];
    
    _view1.frame = CGRectMake(3, 56, 343, 206);
    _view1.backgroundColor = [UIColor whiteColor];
    _tLable.frame = CGRectMake(30, 0, 200, 42);
    
    _lable.frame = CGRectMake(0, 0, 320, 50);
//    _lable.backgroundColor = [UIColor lightGrayColor];
    
//    _tLable.backgroundColor = [UIColor yellowColor];
    _dLable.frame = CGRectMake(30, 45, 180, 42);
//    _dLable.backgroundColor = [UIColor brownColor];
    _view2.frame = CGRectMake(0, 5, 30, 30);
    _view3.frame = CGRectMake(0, 45, 30, 30);
    _view4.frame = CGRectMake(0, 96, 30, 30);
    _lLable.frame = CGRectMake(30, 91, 200, 42);
//    _lLable.backgroundColor = [UIColor cyanColor];
        _gLable.frame = CGRectMake(60, 151, 50, 40);
//    _gLable.backgroundColor = [UIColor blackColor];
    
    _gLable1.frame = CGRectMake(0, 151, 60, 40);
//    _gLable1.backgroundColor = [UIColor blueColor];
    
    _cLable.frame = CGRectMake(150, 151, 50, 40);
//    _cLable.backgroundColor = [UIColor purpleColor];
    _cLable1.frame = CGRectMake(105, 151, 40, 40);
//    _cLable1.backgroundColor = [UIColor yellowColor];
    _imageview.frame = CGRectMake(208, 7, 129, 195);
//    _imageview.backgroundColor = [UIColor yellowColor];

    
    
}


- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
